{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <input type="hidden" name="id" value="{$data.id}">
    <input type="hidden" name="member_id" value="{$data.member_id}">

<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">购买商品</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input type="text" readonly="readonly" value="{$data.goods_name}" autocomplete="off" placeholder="购买商品"-->
<!--                   class="layui-input">-->
<!--        </div>-->
<!--    </div>-->


<!--    <div class="layui-form-item">-->
<!--        <div class="layui-input-block">-->
<!--            <ul class="layui-row list-inline plupload-preview" id="p-pic">-->
<!--                <li class="file-item thumbnail"><a href="javascript:;">-->
<!--                    <img data-image=""-->
<!--                         onerror="this.src='/admin/ajax/icon?suffix=png';this.onerror=null;"-->
<!--                         data-original="{$data.goods_img}"-->
<!--                         src="{$data.goods_img}">-->
<!--                </a>-->
<!--                </li>-->
<!--            </ul>-->
<!--        </div>-->
<!--    </div>-->


    <div class="layui-form-item">
        <label class="layui-form-label">评价内容</label>
        <div class="layui-input-block">
            <textarea name="content" readonly="readonly" placeholder="评价"
                      class="layui-textarea">{$data.content}</textarea>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 220px !important;">评价图片</label>
        <div class="layui-input-block">
            <ul class="layui-row list-inline plupload-preview" id="p-pic">
                {foreach $data.img_list as $k=>$v}
                <li class="file-item thumbnail"><a href="javascript:;">
                    <img data-image=""
                         onerror="this.src='/admin/ajax/icon?suffix=png';this.onerror=null;"
                         data-original="{$v.img_url}"
                         src="{$v.img_url}">
                </a>
                </li>
                {/foreach}

            </ul>
        </div>
    </div>

<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">是否匿名评价</label>-->
<!--        <div class="layui-input-block">-->

<!--            <input type="radio" name="anonymous"  value="0" {if $data.anonymous==0}checked{/if} {if $data.anonymous!=0}disabled="disabled"{/if} title="不匿名">-->

<!--            <input type="radio" name="anonymous"  value="1" {if $data.anonymous==1}checked{/if} {if $data.anonymous!=1}disabled="disabled"{/if}  title="匿名">-->
<!--        </div>-->
<!--    </div>-->


<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">评价反馈</label>-->
<!--        <div class="layui-input-block">-->
<!--            <textarea name="reply_content" placeholder="评价反馈"-->
<!--                      class="layui-textarea">{$return_content}</textarea>-->
<!--        </div>-->
<!--    </div>-->
<!--    {if $data.is_reply==0}-->
<!--    <div class="layui-form-item layer-footer">-->
<!--        <div class="layui-input-block">-->
<!--            <button class="layui-btn" lay-submit="">立即提交</button>-->
<!--            <button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
<!--        </div>-->
<!--    </div>-->
<!--    {/if}-->
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use('yznForm', function () {
        var yznForm = layui.yznForm;
        yznForm.bindevent($("form.layui-form"));
    });
</script>
{/block}